package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelContent;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelContentMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 保存游记内容
     * @param content
     * @param id
     * @return
     */
    int insert(@Param("content") String content, @Param("id") Long id);

    TravelContent selectByPrimaryKey(Long id);

    List<TravelContent> selectAll();

    int updateByPrimaryKey(TravelContent entity);
}